<?php

namespace app\api\controller;

use app\BaseController;
use app\api\model\Faceprint as FaceprintModel;

/**
 * 人脸识别接口
 */
class Faceprint extends BaseController
{
    /**
     * 获取实名认证跳转地址 
     */
    public function getAuthUrl()
    {
        $model = new FaceprintModel;
        return $model->getAuthUrl(input(''));
    }

    /**
     * 结果查询 
     */
    public function query()
    {
        $model = new FaceprintModel;
        $queryNo = input('query_no');
        return $model->query($queryNo);
    }
}